package com.imc.daoImpl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.hibernate.Query;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.imc.beans.ImcUnityLoginSys;
import com.imc.beans.TbSystemModel;
import com.imc.dao.CommonDao;

@Component("loginDaoImpl")
public class LoginDaoImpl extends CommonDaoImpl<ImcUnityLoginSys> {

public ArrayList isLogin(String personname) {
	String sql = "select * from imc_unity_login_role user where user.unity_name='"+personname+"'";
	ArrayList arrayList=this.getElementsBySql(sql);
	return 	arrayList;	
}


	
}
